import request from '@/utils/request'

// 查询仓库RFID设备列表
export function listImsRFID(query) {
  return request({
    url: '/equipment/imsRFID/list',
    method: 'get',
    params: query,
  })
}

// 查询仓库RFID设备详细
export function getImsRFID(rfidId) {
  return request({
    url: '/equipment/imsRFID/' + rfidId,
    method: 'get',
  })
}

// 新增仓库RFID设备
export function addImsRFID(data) {
  return request({
    url: '/equipment/imsRFID',
    method: 'post',
    data: data,
  })
}

// 修改仓库RFID设备
export function updateImsRFID(data) {
  return request({
    url: '/equipment/imsRFID',
    method: 'put',
    data: data,
  })
}

// 删除仓库RFID设备
export function delImsRFID(rfidId) {
  return request({
    url: '/equipment/imsRFID/' + rfidId,
    method: 'delete',
  })
}

// 读取RFID设备
export function readEPCRate(data) {
  return request({
    url: '/equipment/imsRFID/readEPCRate',
    method: 'post',
    data,
  })
}

// 写入RFID设备
export function writeEPCRate(data) {
  return request({
    url: '/equipment/imsRFID/writeEPCRate',
    method: 'post',
    data,
  })
}

export function pallet(data) {
  return request({
    url: '/system_setting/pallet',
    method: 'post',
    data,
  })
}
